package com.ruoyi.show.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.show.mapper.BookDataMapper;
import com.ruoyi.show.domain.BookData;
import com.ruoyi.show.service.IBookDataService;

/**
 * 书籍数据Service业务层处理
 *
 * @author ruoyi
 * @date 2025-09-08
 */
@Service
public class BookDataServiceImpl implements IBookDataService
{
    @Autowired
    private BookDataMapper bookDataMapper;

    /**
     * 查询书籍数据
     *
     * @param id 书籍数据主键
     * @return 书籍数据
     */
    @Override
    public BookData selectBookDataById(Long id)
    {
        return bookDataMapper.selectBookDataById(id);
    }

    /**
     * 查询书籍数据列表
     *
     * @param bookData 书籍数据
     * @return 书籍数据
     */
    @Override
    public List<BookData> selectBookDataList(BookData bookData)
    {
        return bookDataMapper.selectBookDataList(bookData);
    }

    /**
     * 新增书籍数据
     *
     * @param bookData 书籍数据
     * @return 结果
     */
    @Override
    public int insertBookData(BookData bookData)
    {
        return bookDataMapper.insertBookData(bookData);
    }

    /**
     * 修改书籍数据
     *
     * @param bookData 书籍数据
     * @return 结果
     */
    @Override
    public int updateBookData(BookData bookData)
    {
        return bookDataMapper.updateBookData(bookData);
    }

    /**
     * 批量删除书籍数据
     *
     * @param ids 需要删除的书籍数据主键
     * @return 结果
     */
    @Override
    public int deleteBookDataByIds(Long[] ids)
    {
        return bookDataMapper.deleteBookDataByIds(ids);
    }

    /**
     * 删除书籍数据信息
     *
     * @param id 书籍数据主键
     * @return 结果
     */
    @Override
    public int deleteBookDataById(Long id)
    {
        return bookDataMapper.deleteBookDataById(id);
    }
}
